//
// Created by ChenYulu on 2017/5/26.
//

#ifndef DIPLAB_GEOMETRIC_H
#define DIPLAB_GEOMETRIC_H
#define PI 3.1415926
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "typedef.h"
#include "bitmap.h"
#include <math.h>

typedef enum {
  H,//水平翻转
  V//垂直翻转
} Mode;

int Translation(Bitmap *src, Bitmap *dst, int x, int y);
int Mirror(Bitmap *src, Bitmap *dst, Mode mode);
int Scale(Bitmap *src, Bitmap *dst, double ratio);
int Shear(Bitmap *src, Bitmap *dst, float angle, Mode mode);
int Rotation(Bitmap *src, Bitmap *dst, double angle);

#endif //DIPLAB_GEOMETRIC_H
